package core.utils;

/**
 * 工具类
 * @author wsz
 * @date 2021/10/28 10:35
 **/
public class StrUtils {

    /**
     * 首字母转小写
     * @param source
     * @return
     */
    public static String lowerFirst(String source) {
        if (source == null || "".equals(source)) {
            return "";
        }
        char[] chars = source.toCharArray();
        if ('A' <= chars[0] && 'Z' <=chars[0]) {
            chars[0] += 32;
        }
        return String.valueOf(chars);
    }
}
